from django.conf.urls import url

from courses import views

urlpatterns = [
    url(r'^course_list/', views.CoursesListView.as_view(),name='course_list'),
    url(r'^course_detail/(?P<pk>\d+)/$', views.CoursesDetailView.as_view(),name='course_detail'),
    url(r'^course_info/(?P<pk>\d+)/', views.CourseInfoView.as_view(),name='course_info'),
    url(r'^course_comment/(?P<pk>\d+)/', views.CourseCommentView.as_view(),name='course_comment'),
    url(r'^add_comment/', views.AddCommentView.as_view(),name='add_comment'),
    url(r'^video_play/(?P<video_id>\d+)/', views.VideoPlayView.as_view(),name='video_play'),
]
